Package-level declarations

Types

Link copied to clipboard
object AxpCalling

Facade for the AXP Calling module.

Link copied to clipboard
interface Call

An active voice session with an AXP agent using WebRTC.

Link copied to clipboard

Callback interface for updating the Android notifications area on the screen when the call state changes.

Link copied to clipboard
typealias EndCallReason = EndReason
Link copied to clipboard
data class EndedByError(val error: AxpSdkError) : EndReason

Call was ended due to an unrecoverable error.

Link copied to clipboard
typealias EndpointId = String
Link copied to clipboard
typealias EndReason = com.avaya.android.calling.EndReason
Link copied to clipboard
data class InitialCallMediaSettings(val startWithAudioMuted: Boolean = false, val forceRelay: Boolean = false)

Media settings for a new call being started.

Link copied to clipboard
sealed class TelecomCall

Custom representation of a call state in the Android Telecom Manager.

Link copied to clipboard
sealed interface TelecomCallAction : Parcelable

Simple interface to represent related call actions to communicate with the registered call scope in the TelecomCallRepository.registerCall

Link copied to clipboard
class TelecomCallRepository(callsManager: CallsManager)

The central repository that keeps track of the current call and allows to register new calls.

Link copied to clipboard

This service handles the app call logic (show notification, record mic, display audio, etc..). It can get started by the user or by an upcoming push notification to start a call.

Link copied to clipboard
data class TelecomError(val errorCode: Int) : AxpSdkError

An error returned from Jetpack Telecom.

Properties

Link copied to clipboard
val Conversation.call: Call?

Extension property to get the Call of a Conversation, if there is one.

Link copied to clipboard

The call notification manager to use.

Functions

Link copied to clipboard
suspend fun Conversation.addCall(address: String, mediaSettings: InitialCallMediaSettings = InitialCallMediaSettings(), engagementParameters: Map<String, String>? = null, isPriority: Boolean? = null): AxpResult<out Call>

Add a Call to the existing Conversation.

fun Conversation.addCall(address: String, responseHandler: ResponseHandler<Call>, mediaSettings: InitialCallMediaSettings = InitialCallMediaSettings(), engagementParameters: Map<String, String>? = null, isPriority: Boolean? = null)

Add a Call to the existing Conversation, with an asynchronous callback.

Link copied to clipboard
fun Context.launchOutgoingCall(remoteUri: Uri, localDisplayName: String, remoteDisplayName: String = "Unknown", engagementParameters: Map<String, String>? = null, isPriority: Boolean? = null)

Extension method to start a new outgoing call by sending a message to TelecomCallService.

Link copied to clipboard

Extension method to send a notification to TelecomCallService to alert it of any possible changes to the telecom call state.